import { createRouter, createWebHistory } from 'vue-router'
import Chat from '@/views/Chat/Chat.vue'
import Test from '@/views/Test/Test.vue'
import Parent from '@/views/Test/Parent.vue'
import Child from '@/views/Test/Child.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Chat,
    },
    {
      path: '/test',
      name: 'test',
      component: Test
    },
    {
      path: '/parent',
      name: 'parent',
      component: Parent
    },
    {
      path: '/child',
      name: 'child',
      component: Child
    },
  ],
})

export default router
